import vue from "vue";
import VueRouter from "vue-router";
import Layout from "@/views/Layout.vue"
import Details from "@/views/Details.vue"
import House from "@/views/two/House.vue"
import Index from "@/views/two/Index.vue"
import Information from "@/views/two/Information.vue"
import Myde from "@/views/two/MyDe.vue"
import Login from "@/views/login.vue"
import NotFound from "@/views/notfound.vue"
vue.use(VueRouter);
const router = new VueRouter({
  routes: [
    {
      path:"/",
      redirect: "/login"
    },
    {
      path:"/login",
      component:Login
    },
    {
      path:"/layout",
      component:Layout,
      children:[
        {
          path:"index",
          component:Index
        },
        {
          path:"house",
          component:House
        },
        {
          path:"information",
          component:Information
        },
        {
          path:"myde",
          component:Myde
        }
      ]

    },
  
    {
      path:"/details",
      component:Details
    },
    {
      path:"*",
      component:NotFound
    }
   
  ],
});
export default router;
